package cc.idoone.spring_boot_hello.mybatis.h2.service;

import cc.idoone.spring_boot_hello.mybatis.h2.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @auther hemj
 * @since 2017/9/25
 */
public interface MyUserService {

	public void createTable();

	public Integer addUser(User user);

	public Integer deleteUserById(Integer id);

	public Integer updateUser(User user);

	public User getById(Integer id);

	public List<User> queryUserList();
}
